<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <title>编辑任务</title>
    <script th:replace="common/head::static"></script>
</head>
<body>
<form class="layui-form layui-form-pane" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">任务名</label>
        <div class="layui-input-block">
            <input type="text" name="jobName" th:value="${sysJob.jobName}" th:disabled="true" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">任务分组</label>
        <div class="layui-input-block">
            <input type="text" name="jobGroup" th:value="${sysJob.jobGroup}" th:disabled="true" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">调用目标</label>
        <div class="layui-input-block">
            <input type="text" name="invokeTarget" th:value="${sysJob.invokeTarget}" th:disabled="true" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">cron表达式</label>
        <div class="layui-input-block">
            <input type="text" name="cronExpression" th:value="${sysJob.cronExpression}" th:disabled="true" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">执行策略</label>
        <div class="layui-input-block">
            <input type="radio" name="misfirePolicy" value="1" title="立即执行" th:checked="${#strings.equals(sysJob.misfirePolicy, '1')}" th:disabled="true">
            <input type="radio" name="misfirePolicy" value="2" title="执行一次" th:checked="${#strings.equals(sysJob.misfirePolicy, '2')}" th:disabled="true">
            <input type="radio" name="misfirePolicy" value="3" title="放弃执行" th:checked="${#strings.equals(sysJob.misfirePolicy, '3')}" th:disabled="true">
        </div>
    </div>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">并发执行</label>
        <div class="layui-input-block">
            <input type="radio" name="concurrent" value="0" title="允许" th:checked="${#strings.equals(sysJob.concurrent, '0')}" th:disabled="true">
            <input type="radio" name="concurrent" value="1" title="禁止" th:checked="${#strings.equals(sysJob.concurrent, '1')}" th:disabled="true">
        </div>
    </div>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="radio" name="status" value="0" title="正常" th:checked="${#strings.equals(sysJob.status, '0')}" th:disabled="true">
            <input type="radio" name="status" value="1" title="暂停" th:checked="${#strings.equals(sysJob.status, '1')}" th:disabled="true">
        </div>
    </div>
</form>
<script>
    layui.use(['form'], function () {
        const form = layui.form;
        form.render();
    });
</script>
</body>
</html>